﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ORM
{

    public static class Fabrica
    {
        public static IClientDataService CreateClientDataService()
        {
            return new ClientDataService();
        }

        public static IAdminDataService CreateUserDataService()
        {
            return new AdminDataService();
        }
    }

    public interface IClientDataService
    {
        List<Tour> GetAllTours();
        List<Course> GetAllCourses();
        Tour GetTourById(int Id);
    }

    public interface IAdminDataService
    {
        User GetUserId(int id);
        User GetUserLogin(string login);
        List<User> GetAllUsers();
        bool DropUsers();
    }
}
